package reflection;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
public class Person {

    private String name;

    private int age;

    private Date birthDay;

    public String email;

    private void sayHello(String name) {
        System.out.println("person sayHello to : " + name);
    }

    public void working() {
        System.out.println("person working");
    }

    private Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

}
